<?php

namespace Database\Seeders;

use App\Models\AdminUser;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\Hash;

class AdminUserSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $data = [
            ['username'=>'admin','password'=>Hash::make('123456')],
        ];

        collect($data)->each(function ($item){

            AdminUser::create($item);
        });
    }
}
